#ifndef MODULE_WINDOW_PROPERTY_H
#define MODULE_WINDOW_PROPERTY_H

#include <QFrame>

#include "module/modulefileconfig.h"

namespace Ui {
class module_window_property;
}

class module_window_property : public QFrame
{
    Q_OBJECT

public:
    explicit module_window_property(QWidget *parent = nullptr);
    explicit module_window_property(Module_Data data, QWidget *parent = nullptr);
    ~module_window_property();

    void set_module_attribute(Module_Data data);
    void set_parents(QWidget *par);

signals:
    void changeLableName(QString name);

private slots:
    void on_lineEdit_Name_textChanged(const QString &arg1);


private:
    Ui::module_window_property *ui;

    QWidget *par;
    Module_Data data;

    void init();
    void set_name(QString name);
    void set_type(QString type);
    void set_class(QString cls);
};

#endif // MODULE_WINDOW_PROPERTY_H
